package com.inifitness.common.enums;


import com.inifitness.common.basic.BaseEnum;

import lombok.Getter;

/**
 * 性别枚举
 *
 * @author sunjinfeng
 * @since 2022/4/10
 */
@Getter
public enum JavaTypeEnum implements BaseEnum<String> {

  STRING("java.lang.String", "String"),
  CHAR("java.lang.Character", "Char"),
  BYTE("java.lang.Byte", "Byte"),
  SHORT("java.lang.Short", "Short"),
  INTEGER("java.lang.Integer", "Integer"),
  LONG("java.lang.Long", "Long"),
  DOUBLE("java.lang.Double", "Double"),
  FLOAT("java.lang.Float", "Float"),
  BOOLEAN("java.lang.Boolean", "Boolean");

  // @EnumValue //  Mybatis-Plus 提供注解表示插入数据库时插入该值
  private final String value;

  // @JsonValue //  表示对枚举序列化时返回此字段
  private final String label;

  JavaTypeEnum(String value, String label) {
    this.value = value;
    this.label = label;
  }
}
